package com.azt.api.pojo;

import com.azt.pojo.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;
import java.util.List;

@Table(name = "u_cen_member")
public class Member extends BaseEntity {
	
	@Column(name="companyId")
    private Integer companyId;//公司id
	
	@Column(name="signintime")
    private Date signintime;//签约时间
	
	@Column(name="endtime")
    private Date endtime;//结束时间
	
	@Column(name="contacts")
    private String contacts;//；联系人
	
	@Column(name="phone")
    private String phone;//联系电话
	
	@Column(name="removed")
    private Integer removed;//是否移除 0否1是
	
	@Column(name="state")
    private Integer state;//集采状态 1正常2暂停
	
	@Transient
	private String companyName;
	
	@Transient
	private Double shPrice;//商城成交金额
	
	@Transient
	private Double xjPrice;//询价成交总金额
	
	@Transient
	List<CenCollection> collections;

	public List<CenCollection> getCollections() {
		return collections;
	}

	public void setCollections(List<CenCollection> collections) {
		this.collections = collections;
	}

	public Double getShPrice() {
		return shPrice;
	}

	public void setShPrice(Double shPrice) {
		this.shPrice = shPrice;
	}

	public Double getXjPrice() {
		return xjPrice;
	}

	public void setXjPrice(Double xjPrice) {
		this.xjPrice = xjPrice;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public Integer getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }

    public Date getSignintime() {
        return signintime;
    }

    public void setSignintime(Date signintime) {
        this.signintime = signintime;
    }

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    public String getContacts() {
        return contacts;
    }

    public void setContacts(String contacts) {
        this.contacts = contacts == null ? null : contacts.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public Integer getRemoved() {
        return removed;
    }

    public void setRemoved(Integer removed) {
        this.removed = removed;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

}